N,*a=$<.map &:to_i;$><<(a.sum{|c|(N-c)%2}>0?'Ja':'Nej')